package com.micro.frog.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author :  ljh
 * @date : 2018/5/14
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class MaException extends RuntimeException {

    private Integer code;
    private String message;

    private MaException() {
    }

    public MaException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public MaException(String message) {
        this(-9999, message);
    }

}
